package com.chinaums.fsp.sdk.request;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.WithdrawWebRequest;
import com.chinaums.fsp.sdk.pgt.params.validate.WithdrawWebResponse; 
/**
 * 机构网关提现
 * @author hhh
 */
public class WithdrawWebTest extends BaseRequest{

	public void testBalanceQueryRequest() throws Exception {
		
		PgtRequestFactory rf = FACTORY.factory();
		
		RequestData.Builder builder = this.createRequestDataBuilder();
		builder.setTransType(TransType.WITHDRAW_WEB.getTransCode());
		
		WithdrawWebRequest data = WithdrawWebRequest.newBuilder().setWalletNo("801000000000073")
															     .setRedirectPlatformUrl("http://www.baidu.com")
																	.build()
																	;
		rf.transType(TransType.WITHDRAW_WEB.getTransCode())
		.responseClass(WithdrawWebResponse.class)
		.data(data)
		;
		
		ResponseDataWrapper rdw = rf.post();
	
		this.print(rdw);
	}
	
}